<?php
$dateFormat = Configure::read('AppConfig.RewardDateFormat');
?>
<dl style="margin:0;padding: 0;width: 600px;font-size:15px;">
    <dt style="margin:0;padding:0;">
	<?php echo __('Dear %s!', $user['last_name']); ?>
	</dt>
    <dd style="margin:0;padding:0;">
        <div style="background: #FFFFFF;margin: 0;padding: 10px 0 0 10px;">
            <div>
                <label style="width: 280px;display: inline-block;">
					<strong><?php echo __('Booking No.'); ?> : </strong>
					<?php echo $user['booking'] ?>
				</label>
				<label style="display: inline-block;">
					<strong><?php echo __('Date'); ?> : </strong>
					<?php echo date($dateFormat, $data['created']) ?>
				</label>
            </div>
            <div>
                <label>
					<strong><?php echo __('Name'); ?> : </strong>
					<?php echo $user['last_name'] ?>
				</label>
            </div>
            <div>
                <label>
					<strong><?php echo __('First name'); ?> : </strong>
					<?php echo $user['first_name'] ?>
				</label>
            </div>
			<div>
                <label>
					<strong><?php echo __('Email'); ?> : </strong>
					<?php echo $user['email'] ?>
				</label>
            </div>
			<div>
                <label>
					<strong><?php echo __('Winning price'); ?> : </strong>
					<?php echo $data['name']; ?>
				</label>
            </div>
			<div>
                <label>
					<strong><?php echo __('Expiration date'); ?> : </strong>
					<?php echo date($dateFormat, $data['expired']); ?>
				</label>
            </div>
			<div>
                <label>
					<strong><?php echo __('Condition'); ?> : </strong>
				</label>
				<div>
					<?php
					$condition = Configure::read('AppConfig.RewardCondition');
					echo str_replace(array("\t", "\r", "\n", "  ")
							, array('<span style="padding-left:10px"></span>', '', '<br/>', "&nbsp;")
							, $condition);
					?>
				</div>
            </div>
        </div>
		<p style="color: #555;">
			----------------------------------------------------------- <br />
			Note that this result was made in two copies and sent simultaneously to the admin and custommer.<br />
			We will compare the results to the email received. If there is any wrong information, you will not receive the winning money.
		</p>
    </dd>
</dl>